package demo1;

public class OuterClass {
    public int data1 = 1;
    private int data2 = 2;
    public static int data3 = 3;

    static class Interclass{
        public int data4 = 4;
        public void test(){
            OuterClass out = new OuterClass();
            System.out.println("inner::test()");
            System.out.println(out.data1);
            System.out.println(out.data2);
            System.out.println(data3);
            System.out.println(data4);
        }
    }

    public static void func(){
        OuterClass out = new OuterClass();
        System.out.println(out.data1);
    }

}
